<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" >
<h:head>
	<style>
	body {font-family:\5B8B\4F53,Arial Narrow,arial,serif;background:#ffffff;font-size:12px;}
	body,div,dl,dt,dd,ul,ol,li,pre,form,fieldset,input,textarea,blockquote,emBED{padding:0; margin:0;}
	</style>
	<title>消息订阅</title>
</h:head>
<h:body>
	<h:form id="messageSubscribeForm">	
	<p:toolbar id="createtoolbar" style="margin-left:8px">
		<f:facet name="left">
			<p:commandButton value="保存"  actionListener="#{messageSubscribeController.saveUserSubscriptionInfo()}" icon="ui-icon-disk"  style="margin-left:10px"/>
			<p:commandButton value="关闭" actionListener="#{messageSubscribeController.closeDialog()}" icon="ui-icon-close" style="margin-left:10px"/>
		</f:facet>
	</p:toolbar>
	    <p:dataTable var="topic" style="margin-top:5px;margin-left:8px" value="#{messageSubscribeController.userTopicList}">
		    <p:column headerText="类型" width="15%">
	          	  <img width="40px" height="40px" src="/resources/img/message/warn_message.png" /> 
		    </p:column>
		 
		    <p:column headerText="描述" width="70%">
		       <h:outputText value="#{topic.description}" />
		    </p:column>
		 
		    <p:column headerText="订阅" width="15%">
		       <p:selectBooleanCheckbox value="#{topic.check}"/>
		    </p:column>
		</p:dataTable>
	</h:form>
</h:body>
</html>
